#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<vector<int> >arr;
	for (int i = 0; i < 10; i++)
	{
		vector<int>x(i + 1, i + 1);
		arr.push_back(x);
	}
	for (int i = 0; i < 10; i++)
	{
		for (int j = 0; j < arr[i].size(); j++)
		{
			//cout << arr[i][j] << " ";
			printf("%3d ", arr[i][j]);
		}
		cout << endl;
	}
	return 0;
}